#include <iostream>
#include <string>

int max(const int a, const int *b)
{
    return (a > *b) ? a : *b;
}

int main()
{
    int a = 3, b = 6;
    std::cout << max(a, &b) << std::endl;
}